import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:myapp/pages/myAppBar.dart';

class MyScaffold extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Material(
      // Column is 垂直方向线性布局
      child: new Column(
        children: <Widget>[
          MyAppBar(title: Text('Example title')),
          Expanded(child: Center( child: Text('Hello world')))
        ],
      ),
    );
  }

}